package com.github.raffle.behavior.mediator;

/**
 * 同事
 * @author Stephen Liu
 * @since Jan 28, 2016
 * @version 1.0.0
 */
public abstract class Colleague {
	/**
	 * 持有中介，所有的同事共用一个中介
	 */
	private Mediator mediator;

	/**
	 * 和中介建立关联
	 * @param mediator
	 */
	public void setMediator(Mediator mediator) {
		this.mediator = mediator;
	}

	public Mediator getMediator() {
		return mediator;
	}
}
